package org.jeecg.modules.demo.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.crm.entity.CLibrary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 库管理
 * @Author: jeecg-boot
 * @Date:   2025-06-16
 * @Version: V1.0
 */
public interface CLibraryMapper extends BaseMapper<CLibrary> {

    @Select("select t3.* from c_quotation as t1 LEFT JOIN c_project_application as t2 on t1.project_id = t2.id LEFT JOIN c_library t3 on t3.id = t2.library_id where t1.id = #{quotationId} limit 1 ")
    CLibrary findByQuotationId(@Param("quotationId") String quotationId);
}
